<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../css/mui.css"/>
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/general.css"/>
		<style type="text/css">
			.main{
				width: 100%;
				padding: 0.5em;
				background-color: white;
			}
			
			table{
				width: 100%;
			}
			tr{
				border-bottom: 1px solid #C7C7C7;
			}
			td{
				padding: 0.5em;
			}
			.gqdiv{
				width: 100%;
				text-align: center;
				padding: 11px;
				margin-top: 2em;
			}
			.gqdiv>p{
				color: red;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav hbg">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left colorw"></a>
		    <h1 class="mui-title">您的客服</h1>
		</header>
		<div class="mui-content">
		    <div class="" id="clist">
		    </div>
		    <div class="gqdiv" id="gqdid">
		    	
		    </div>
		</div>
		<script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mui.min.js"></script>
		<script src="../js/req.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/muishow.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			
			var is_show = false;
			window.onload = function(){
				mui.init();
				is_show = getrequest().is_show||false;
				
				getcontact();
				if(is_show){
					g("gqdid").innerHTML = "<p>您的软件已过期，请与客服联系</p>";
					//mui.toast("您的软件已过期，请与客服联系");
				}
			}
			
			function getcontact(){
				var data = {
					url:"/api/company/get_service",
					data:{
						access_token:acctoken(),
					}
				}
				ajax(data,function(res){
					console.log(res);
					var str = '';
					if("" != res.data && null != res.data){
						str += '<ul class="mui-table-view">'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '客服专员：'+res.data.username+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '联系电话：'+res.data.phone+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                'QQ号：'+res.data.qq+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '微信号 : '+res.data.weixin+
		    	            '</a>'+
		    	        '</li>'+
		    	         '</ul>';
					}else{
						str += '<ul class="mui-table-view">'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '客服专员：空'+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '联系电话：020-28811457'+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                'QQ号：2655784009'+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '微信号 : 18928762645'+
		    	            '</a>'+
		    	        '</li>'+
		    	        '<li class="mui-table-view-cell">'+
		    	        	'<a class="">'+
		    	                '公司网站 : www.soft101.com'+
		    	            '</a>'+
		    	        '</li></ul>';
						//str += '<div class="nolistdiv">暂未分配客服</div>'
					}
					
		    	        
		    			
					g("clist").innerHTML = str;
					
					
				})
				
			}
		</script>
	</body>

</html>